package com.firesrc.dao;

import java.util.List;
import java.util.Map;

import com.firesrc.bean.MailHost;

public interface MailHostDao {

	void add(MailHost mailHost);

	List<MailHost> getAllList(MailHost mailHost);

	void delete(MailHost mailHost);

	List<MailHost> getAllCurrentList();

	List<String> getAllCurrentKindList();

	void enable(String id);

	void disable(String id);

	void update(MailHost mailHost);

	Map<String, Integer> getKindCountMap(String state);

	List<MailHost> getListByType(String type);

	MailHost getById(String id);

	void save(MailHost mailHost);

	/**
	 * 得到所有启用的mailhost state=1
	 * @return
	 */
	List<MailHost> getEnableList();

	int disableAll();

	int enableAll();

}
